msg Property |
String that specifies the error message that can be displayed instead of the default message when an error occurs.
Syntax
HTML |
<ELEMENT id=elementID fieldType=sType msg=sMsg...>...</ELEMENT> |
Scripting |
elementID.msg [ =sMsg ] |
Parameters
Parameter |
Description |
---|---|
sMsg |
String that denotes the message that can be displayed inplace of the default message when an error occurs. |
Example
The following example shows how themsgproperty can be used to display an error message when a text value is entered in the field which has a type set to float.
//validate definition inside the BODY <div cordysType="wcp.library.util.Validate" id="validate"></div> //INPUT box with minValue <input type="text" fieldType="float" msg="You are trying to enter a wrong value inplace of float !">